package com.leo.blog.util;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname CacheModel
 * @Description TODO
 * @Date 2022/11/26 21:19
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public class CacheModel implements Serializable {

    /**
     * 字段key
     */
    private String key;

    /**
     * 值
     */
    private Object value;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 过期时间
     */
    private Date expireTime;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public CacheModel(String key, Object value, Date createDate, Date expireTime) {
        this.key = key;
        this.value = value;
        this.createDate = createDate;
        this.expireTime = expireTime;
    }

    public CacheModel() {
    }
}
